from charmicat import Cut
from cmix.parameters import paramdef

cuts = [Cut(name='pcm_pipik_gt_2.7',
            desc='Select events with three-body momentum ' + \
                'greater than 2.7 GeV in the overall CM frame',
            pos_str='(pcm_pipik > 2.7)',
            ),
        Cut(name='m_kpi_not_d0_28MeV',
            desc='Reject events where the K+pi- invariant mass ' + \
                'is within 28 MeV of the D0 mass',
            pos_str='(abs(m_kpi - D0_MASS) > 0.028)',
            condvars=paramdef,
            ),
        Cut(name='pos_pik_llh_gt_0.5',
            desc='Identify K+ by atc_pid(K,pi) > 0.5',
            pos_str='(pos_pik_llh > 0.5)',
            ),
        Cut(name='neg_pik_llh_lt_0.9',
            desc='Identify pi- by atc_pid(K,pi) < 0.9',
            pos_str='(neg_pik_llh < 0.9)',
            ),
        ]


